Members
calcPrevWidth
Dynamically adapt dimensions of image preview.
- Source:
reRender
Trigger rendering with new width.
- Source:
Methods
drawPixelsToCanvas(pixelData, canvas, w, h, rgb, channel)
Fills canvas with pixel data.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
pixelData |
* | Raw pixel array | |
canvas |
* | Canvas to draw on to | |
w |
* | width of pixel data | |
h |
* | height of pixel data | |
rgb |
boolean | rgb or greyscale status of pixel data | |
channel |
* | 0 | channel to take from pixel data in case multiple channels are contained |
- Source:
getImageDataFromPixelData()
Converts array of pixel values into ImageData object.
- Source: